﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="Bill.aspx.cs" Inherits="Admin_Bill" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header">
            <h3>
                Mange Bill</h3>
            <ul class="content-box-tabs">
                <li></li>
                <!-- href must be unique and match the id of target div -->
                <li></li>
            </ul>
            <div class="clear">
            </div>
        </div>
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <div class="tab-content default-tab" id="tab1">
                        <!-- This is the target div. id must match the href of this div's tab -->
                        <%--<asp:TextBox ID="txtSearch" runat="server" Text="Bill ID" AutoPostBack="True" OnTextChanged="txtSearch_TextChanged"
                            CssClass="text-input small-input"></asp:TextBox>--%>
                        <input id="txtSearch" type="text" runat="server" value="Bill Id" onfocus="if(this.value=='Bill Id')this.value=''"
                            class="text-input small-input" />
                        <asp:LinkButton ID="lbnSearch" runat="server" CssClass="button" OnClick="lbnSearch_Click"><img src="../images/icons/kinh.png" width="25px" height="20px"/></asp:LinkButton>
                        <br />
                        <br />
                        <div style="border: 1px solid #5fa226; border-radius: 5px;">
                            <asp:GridView ID="grvBill" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                                AllowPaging="true" OnRowCommand="grvBill_RowCommand" PageSize="5" OnPageIndexChanging="grvBill_PageIndexChanging"
                                BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%">
                                <Columns>
                                    <asp:TemplateField HeaderText="ID">
                                        <ItemTemplate>
                                           <%#Eval("Bi_ID") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Total Amount">
                                        <ItemTemplate>
                                            <%#Eval("Bi_TotalAmount") %>
                                            $
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Address">
                                        <ItemTemplate>
                                            <%#Eval("Bi_Address") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Order Date">
                                        <ItemTemplate>
                                            <%#Eval("Bi_Date") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Delivery Date">
                                        <ItemTemplate>
                                            <%#Eval("Bi_DateCompleted")%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Member ID">
                                        <ItemTemplate>
                                            <%#Eval("M_ID") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Status">
                                        <ItemTemplate>
                                            <%#Eval("Bi_Status") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbnEdit" runat="server" CommandName="Upd" CommandArgument='<%#Eval("Bi_ID") %>'><img src="../images/icons/pencil.png" alt="Edit" /></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                    Font-Size="16px" />
                            </asp:GridView>
                        </div>
                    </div>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <h2>
                        Bill Details</h2>
                    <br />
                    <div style="border: 1px solid #eeeeed; border-radius: 5px;">
                        <table width="100%">
                            <tr>
                                <td style="width: 20%">
                                    Total Amount
                                </td>
                                <td>
                                    <asp:Label ID="lblTTAmount" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address
                                </td>
                                <td>
                                    <asp:Label ID="lblAddr" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Order Date
                                </td>
                                <td>
                                    <asp:Label ID="lblODate" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Delivery Date
                                </td>
                                <td>
                                    <asp:Label ID="lblDDate" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Messages
                                </td>
                                <td>
                                    <asp:Label ID="lblMessages" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Member ID
                                </td>
                                <td>
                                    <asp:Label ID="lblMemID" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div><br /><br />
                    <h3>
                        <asp:Label ID="lblBouquet" runat="server" Text="Bouquet" Visible="false"></asp:Label></h3>
                    <br />
                    <div style="border: 1px solid #5fa226; border-radius: 5px;">
                        <asp:GridView ID="grvBou" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%">
                            <Columns>
                                <asp:TemplateField HeaderText="Bouquet ID" HeaderStyle-Width="40%">
                                    <ItemTemplate>
                                        <%#Eval("B_ID") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Quantity" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BiD_Number")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Amount" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BiD_Amount")%>
                                        $
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                Font-Size="16px" />
                        </asp:GridView>
                    </div>
                    <br />
                    <h3>
                        <asp:Label ID="lblGift" runat="server" Text="Gift" Visible="false"></asp:Label></h3>
                    <br />
                    <div style="border: 1px solid #5fa226; border-radius: 5px;">
                        <asp:GridView ID="grvGift" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%">
                            <Columns>
                                <asp:TemplateField HeaderText="Gift ID" HeaderStyle-Width="40%">
                                    <ItemTemplate>
                                        <%#Eval("G_ID") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Quantity" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BG_Quantity")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Amount" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BG_Amount")%>
                                        $
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                Font-Size="16px" />
                        </asp:GridView>
                    </div>
                    <br />
                    <asp:DropDownList ID="drlStatus" runat="server">
                        <asp:ListItem>No delivered</asp:ListItem>
                        <asp:ListItem>Has delivered</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="lblIDBill" runat="server" Text="" Visible="false"></asp:Label>
                    <br />
                    <br />
                    <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click"
                        CssClass="button" />
                </asp:View>
            </asp:MultiView>
            <!-- End #tab1 -->
            <!-- End #tab2 -->
        </div>
        <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->
</asp:Content>
